export const tableConfig = {
	showIndexColumn: true,
	propList: [
		{ prop: 'account', label: '账号' },
		{ prop: 'nickName', label: '用户昵称' },
		{ prop: 'roleName', label: '角色' },
		{ prop: 'sex', label: '性别', slotName: 'sex' },
		{ prop: 'remark', label: '备注' },
		{ prop: 'createTime', label: '创建时间' },
		{ label: '操作', slotName: 'handler' }
	]
}

export const rules = {
	account: [{ required: true, message: '请输入账号', trigger: 'blur' }],
	password: [{ required: true, message: '请输入密码', trigger: 'blur' }],
	nickName: [{ required: true, message: '请输入昵称', trigger: 'blur' }],
	sex: [{ required: true, message: '请选择性别', trigger: 'change' }],
	roleId: [{ required: true, message: '请选择角色', trigger: 'change' }]
}
